<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>choice car</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
    <script type="text/javascript">
        document.documentElement.style.fontSize = document.documentElement["clientWidth"] * 12 / 320 + 'px';
    </script>
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="lib/swiper.min.css">
    <style type="text/css">
        body, p, img, div, dl, dd, em, h1, ul, li, a, header, span, section, footer {
            margin: 0;
            padding: 0
        }

        body, html {
            min-height: 100%;

        }

        a, img {
            -webkit-touch-callout: none
        }

        a {
            text-decoration: none;
            color: #00aaee;
        }

        body {
            -webkit-user-select: none;
            user-select: none;
            color: #333;
            background: #fff;
            font-size: 12px;
            font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
            background: #efefef;
        }

        html, body {
            height: 100%;
        }

        img {
            -webkit-user-select: none;
            pointer-events: none;
        }

        p {
            font-size: 0.9rem;
        }

        h4, p {
            margin: 0;
            padding: 0;
        }

        .page-choose .top {
            position: relative;
            height: 34px;
            line-height: 34px;
            text-align: center;
        }

        .page-choose .top a.shift {
            position: absolute;
            left: 0;
            top: 0;
            height: 40px;
            width: 40px;
        }

        .swiper-container {
            width: 100%;
            height: 80%;
            margin: 20px auto;
        }

        .swiper-slide {
            position: relative;
            text-align: center;
            font-size: 18px;
            width: 85% !important;
            height: 100%;
            margin-left: 7.5%;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }

        .selectImg {
            position: absolute;
            top: 8%;
            width: 7%;
            height: auto;
            left: 46.5%;
        }

        img {
            width: 100%;
            height: auto;
        }

        .carShow {
            width: 100%;
            height: auto;
            margin-top: 16%;
        }

        p {
            text-align: left;
            padding: 5px 0 5px 18%;
        }

        .left_model, .right_model {
            width: 50%;
            height: auto;
        }

        .left_model {
            float: left;
        }

        .right_model {
            float: right;
        }

        .nextBtn {
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 13%;
            background: url(img/nextBg.png) 0 0 no-repeat;
            background-size: cover;
            z-index: 2;
            box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2) inset;
        }

        .borderclass {
            border: 1px solid #2d2d2d;
        }

        .next_page {
            position: absolute;
            width: 30%;
            height: auto;
            left: 35%;
            top: 26%;
        }
    </style>
</head>
<body class="page-choose">
<div class="top">
    <a class="shift"><img src="img/nav.png"></a>
    Compare Your Car
</div>
<!-- Swiper -->
<div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide borderclass">
            <div class="selectImg"><img src="img/icon_ok.png"></div>
            <div class="carShow">
                <img src="img/car/car1.png">
                <h4>RMB 269,800 </h4>

                <div class="left_model">
                    <p>Model: </p>

                    <p> Rated Output:</p>

                    <p> Cyl./Displacement:</p>

                    <p>Fuel consumption:</p>

                    <p> Acceleration 0-100:</p>

                    <p> Top speed:</p>
                </div>
                <div class="right_model">
                    <p>GLA 200 Dynamic </p>

                    <p>115/156/5300</p>

                    <p>L4/1595</p>

                    <p>6.4</p>

                    <p>9.2km/h (s)</p>

                    <p>215(km/h)</p>
                </div>
            </div>
        </div>
        <div class="swiper-slide">
            <div class="selectImg"><img src="img/icon_no.png"></div>
            <div class="carShow">
                <img src="img/car/car2.png">
                <h4>RMB 269,800 </h4>

                <div class="left_model">
                    <p>Model: </p>

                    <p> Rated Output:</p>

                    <p> Cyl./Displacement:</p>

                    <p>Fuel consumption:</p>

                    <p> Acceleration 0-100:</p>

                    <p> Top speed:</p>
                </div>
                <div class="right_model">
                    <p>GLA 200 Dynamic </p>

                    <p>115/156/5300</p>

                    <p>L4/1595</p>

                    <p>6.4</p>

                    <p>9.2km/h (s)</p>

                    <p>215(km/h)</p>
                </div>
            </div>
        </div>
        <div class="swiper-slide">
            <div class="selectImg"><img src="img/icon_no.png"></div>
            <div class="carShow">
                <img src="img/car/car3.png">
                <h4>RMB 269,800 </h4>

                <div class="left_model">
                    <p>Model: </p>

                    <p> Rated Output:</p>

                    <p> Cyl./Displacement:</p>

                    <p>Fuel consumption:</p>

                    <p> Acceleration 0-100:</p>

                    <p> Top speed:</p>
                </div>
                <div class="right_model">
                    <p>GLA 200 Dynamic </p>

                    <p>115/156/5300</p>

                    <p>L4/1595</p>

                    <p>6.4</p>

                    <p>9.2km/h (s)</p>

                    <p>215(km/h)</p>
                </div>
            </div>
        </div>
    </div>

</div>
<a href="choosestudent.html" target="_self">
    <div class="nextBtn">
        <img src="img/next.png" class="next_page">
    </div>
</a>
<!-- Swiper JS -->
<script src="lib/swiper.min.js"></script>
<script type="text/javascript" src="lib/zepto.min.js"></script>
<!-- Initialize Swiper -->
<script>
    var swiper = new Swiper('.swiper-container', {
        slidesPerView: 1,
        freeMode: true,
    });
    $(function () {
        $(".swiper-slide").on("click", function () {
            $(this).addClass("borderclass").siblings().removeClass("borderclass");
            $(".selectImg>img").attr("src", "img/icon_no.png");
            $(this).find(".selectImg>img").attr("src", "img/icon_ok.png");

        })
    })
</script>
</body>
</html>